/**
 * 图片类型映射
 */
export const imageTyes: Record<string, string> = {
  'image/jpeg': '.jpg',
  'image/png': '.png',
  'image/gif': '.gif',
  'image/webp': '.webp'
};

/**
 * 视频类型映射
 */
export const videoTypes: Record<string, string> = {
  'video/mp4': '.mp4',
  'video/mpeg': '.mpeg',
  'video/quicktime': '.mov',
  'video/x-msvideo': '.avi'
};

/**
 * 文档类型映射
 */
export const docTypes: Record<string, string> = {
  'application/pdf': '.pdf',
  'application/msword': '.doc',
  'application/vnd.openxmlformats-officedocument.wordprocessingml.document': '.docx',
  'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet': '.xlsx'
};

/**
 * 文件扩展名映射
 */
export const extensions: Record<string, string> = {
  ...imageTyes,
  ...videoTypes,
  ...docTypes,
};
